<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateMakeVideoTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('make_video', function (Blueprint $table) {
            $table->id();
            $table->string('image',1000)->comment('图片');
            $table->tinyInteger('language')->default(1)->comment('语言：1=中文 2=英文 3=方言');
            $table->tinyInteger('is_captions')->default(1)->comment('是否加字幕：1=是 0=否');
            $table->tinyInteger('is_medium')->default(1)->comment('媒体：1=是 0=否');
            $table->unsignedBigInteger('time')->default(5)->comment('时长/秒');
            $table->string('content',1000)->comment('文字内容');
            $table->string('video',1000)->nullable()->comment('合成的视频地址');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('make_video');
    }
}
